<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Represents dimensions (width, height)</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ui-point.sety.html">« UI\Point::setY</a></li>
      <li style="float: right;"><a href="ui-size.construct.html">UI\Size::__construct »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.ui.html">UI</a></li>
    <li>Represents dimensions (width, height)</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.ui-size" class="reference">

 <h1 class="title">Represents dimensions (width, height)</h1>
 

 <div class="partintro"><p class="verinfo">(UI 0.9.9)</p>


  <div class="section" id="ui-size.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Sizes are used throughout UI to represent the size of a screen, control, or area.
   </p>
  </div>


  <div class="section" id="ui-size.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">final</span>
      <span class="modifier">class</span> <strong class="classname">UI\Size</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.ui-size.html#ui-size.props.width">$<var class="varname">width</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
      <var class="varname"><a href="class.ui-size.html#ui-size.props.height">$<var class="varname">height</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constructor */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="ui-size.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$width</code></span>, <span class="methodparam"><span class="type">float</span> <code class="parameter">$height</code></span>)</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-size.getheight.html" class="methodname">getHeight</a></span>(): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-size.getwidth.html" class="methodname">getWidth</a></span>(): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="ui-size.of.html" class="methodname">of</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$size</code></span>): <span class="type"><a href="class.ui-size.html" class="type UI\Size">UI\Size</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="ui-size.of.html" class="methodname">of</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-point.html" class="type UI\Point">UI\Point</a></span> <code class="parameter">$point</code></span>): <span class="type"><a href="class.ui-size.html" class="type UI\Size">UI\Size</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-size.setheight.html" class="methodname">setHeight</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$size</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-size.setwidth.html" class="methodname">setWidth</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$size</code></span>)</div>

   }</div>


  </div>


  <div class="section" id="ui-size.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="ui-size.props.width"><var class="varname">width</var></dt>

     <dd>

      <p class="para">
       Holds the width, can be read/written directly
      </p>
     </dd>

    
    
     <dt id="ui-size.props.height"><var class="varname">height</var></dt>

     <dd>

      <p class="para">
       Holds the height, can be read/written directly
      </p>
     </dd>

    
   </dl>

  </div>


 </div>

 











































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ui-size.construct.html">UI\Size::__construct</a> — Construct a new Size</li><li><a href="ui-size.getheight.html">UI\Size::getHeight</a> — Retrieves Height</li><li><a href="ui-size.getwidth.html">UI\Size::getWidth</a> — Retrives Width</li><li><a href="ui-size.of.html">UI\Size::of</a> — Point Coercion</li><li><a href="ui-size.setheight.html">UI\Size::setHeight</a> — Set Height</li><li><a href="ui-size.setwidth.html">UI\Size::setWidth</a> — Set Width</li></ul>
</div>
</div></div></body></html>